Type.registerNamespace('ModWatch');

ModWatch.ConfirmDialogAlert = function() { 
    ModWatch.ConfirmDialogAlert.initializeBase(this);

	this._notifyModMessage = null;
}

ModWatch.ConfirmDialogAlert.prototype =
{

	get_notifyModMessage : function()
	{
		return this._notifyModMessage;
	},

	set_notifyModMessage : function(value)
	{
		if (!value || value == null)
			this._notifyModMessage = '';
		else
			this._notifyModMessage = value;
	},

	showAlert : function(sender, e)
	{
		if (!confirm(this._notifyModMessage))
			e.set_cancel(true);
	}

}

ModWatch.ConfirmDialogAlert.registerClass('ModWatch.ConfirmDialogAlert', ModWatch.AlertBehaviorBase);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
